@echo off

CALL "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"

echo Coping DLL into BISD (x86) directory
copy bin\release\MassTrimmer.dll "C:\Program Files (x86)\Microsoft SQL Server\110\DTS\PipelineComponents"

echo Coping DLL into BISD (x64) directory
copy bin\release\MassTrimmer.dll "C:\Program Files\Microsoft SQL Server\110\DTS\PipelineComponents"

echo Unregistering previous dll 
gacutil /uf MassTrimmer

echo Registering dll into GAC
gacutil /f /i bin\release\MassTrimmer.dll

pause